<template>
<div class="teacher-view">
    <header-component :page-list="pageList"/>
    <router-view/>
</div>
</template>

<script setup>
import HeaderComponent from "@/components/header/HeaderComponent.vue";
import { useTeacherStore } from "@/stores/teacher";
import {
    IbmCloudTransitGateway,
    GroupAccess,
    Edit,
    TaskApproved
} from "@vicons/carbon";
const useTeacher = useTeacherStore()
useTeacher.updateClass()
useTeacher.updateTask()
let pageList = reactive([
    {
        name: '实训管理',
        icon:h(IbmCloudTransitGateway),
        pathName:'TrainManage',
        isChoose: true
    },
    {
        name: '班级管理',
        icon:h(GroupAccess),
        pathName:'ClassManage',
        isChoose: false
    },
    {
        name: '成绩管理',
        icon:h(Edit),
        pathName:'GradeManage',
        isChoose: false
    },
    {
        name: '资源中心',
        icon:h(TaskApproved),
        pathName:'ResourceCentre',
        isChoose: false
    },
])

</script>

<style scoped lang="less">

</style>